.ui-radio {
  display: inline-block;
  position: relative;

  input[type='radio'] {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);

    &:checked {
      ~ i {
        color: @brand-primary;
        border-color: @brand-primary;

        &:after {
          background: @brand-primary;
        }
      }
      ~ span {
        color: @brand-primary;
      }
    }
  }

  i {
    float: left;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    border: 2px solid #bbb;
    color: #bbb;
    line-height: 16px;
    text-align: center;
    position: relative;

    &:after {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      width: 8px;
      height: 8px;
      border-radius: 4px;
      margin: auto;
      background: #fff;
    }
  }

  span {
    display: block;
    margin-left: 28px;
    color: #333;
  }
}

.ui-radio._block {
  display: block;
}